(function(){ var temp=wpgmaps_mapid.wpgmza_legacy_current_map_id; window.wpgmaps_mapid=temp; })(); var WPGM_Path_Polygon=new Array(); var WPGM_Path=new Array(); var infoWindow_poly=Array(); var marker_array=Array(); var marker_sl=null; for (var entry in wpgmaps_localize){ if('undefined'===typeof window.jQuery){ setTimeout(function(){ document.getElementById('wpgmza_map').innerHTML='Error: In order for WP Google Maps to work, jQuery must be installed. A check was done and jQuery was not present. Please see the jQuery troubleshooting section of our site for more information.'; }, 5000); }} function wpgmza_parse_theme_data(raw){ var json; try{ json=JSON.parse(raw); }catch(e){ try{ json=eval(raw); }catch(e){ console.warn("Couldn't parse theme data"); return []; }} return json; } function wpgmza_get_guid(){ function s4(){ return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } function wpgmza_open_info_window(infoWindow, content){ var guid=wpgmza_get_guid(); var div=$(""),s===this.scaleBarSteps_-1&&i.push(this.createStepText(s+1,t,!0,e,r)),a="#ffffff"===a?"#000000":"#ffffff";return'
'+(this.scaleBarText_?'
'+n+"
":"")+i.join("")+"
"},e.prototype.createMarker=function(t,e){return'
'},e.prototype.createStepText=function(t,e,r,n,i){var o=(0===t?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+i);return'
'+o+"
"},e.prototype.getScaleForResolution=function(){var t=this.getMap().getView().getResolution(),e=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*e*39.37*(25.4/.28)},e}(Li),HT=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),qT={VERTICAL:0,HORIZONTAL:1};function JT(t){if(t.frameState){this.sliderInitialized_||this.initSlider_();var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}}var QT=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),render:n.render||JT})||this).dragListenerKeys_=[],r.currentResolution_=void 0,r.direction_=qT.VERTICAL,r.dragging_,r.heightLimit_=0,r.widthLimit_=0,r.startX_,r.startY_,r.thumbSize_=null,r.sliderInitialized_=!1,r.duration_=void 0!==n.duration?n.duration:200;var i=void 0!==n.className?n.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=i+"-thumb "+Ai;var a=r.element;return a.className=i+" "+Ai+" "+Gi,a.appendChild(o),a.addEventListener(pn.POINTERDOWN,r.handleDraggerStart_.bind(r),!1),a.addEventListener(pn.POINTERMOVE,r.handleDraggerDrag_.bind(r),!1),a.addEventListener(pn.POINTERUP,r.handleDraggerEnd_.bind(r),!1),a.addEventListener(N.CLICK,r.handleContainerClick_.bind(r),!1),o.addEventListener(N.CLICK,L,!1),r}return HT(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,r=t.offsetHeight,n=t.firstElementChild,i=getComputedStyle(n),o=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),a=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom);this.thumbSize_=[o,a],e>r?(this.direction_=qT.HORIZONTAL,this.widthLimit_=e-o):(this.direction_=qT.VERTICAL,this.heightLimit_=r-a),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),r=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),n=this.getResolutionForPosition_(r),i=e.getConstrainedZoom(e.getZoomForResolution(n));e.animateInternal({zoom:i,duration:this.duration_,easing:ri})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var r=this.handleDraggerDrag_,n=this.handleDraggerEnd_;this.dragListenerKeys_.push(g(document,pn.POINTERMOVE,r,this),g(document,pn.POINTERUP,n,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,r=t.clientY-this.startY_,n=this.getRelativePosition_(e,r);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(v),this.dragListenerKeys_.length=0)},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),r=this.element.firstElementChild;this.direction_==qT.HORIZONTAL?r.style.left=this.widthLimit_*e+"px":r.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){return kt(this.direction_===qT.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){return kt(1-this.getMap().getView().getValueForResolutionFunction()(t),0,1)},e}(Li),$T=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),tS=function(t){function e(e){var r=this,n=e||{};(r=t.call(this,{element:document.createElement("div"),target:n.target})||this).extent=n.extent?n.extent:null;var i=void 0!==n.className?n.className:"ol-zoom-extent",o=void 0!==n.label?n.label:"E",a=void 0!==n.tipLabel?n.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"==typeof o?document.createTextNode(o):o),s.addEventListener(N.CLICK,r.handleClick_.bind(r),!1);var u=i+" "+Ai+" "+Gi,l=r.element;return l.className=u,l.appendChild(s),r}return $T(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal(zr(e))},e}(Li),eS={array:{},color:{},colorlike:{},control:{},coordinate:{},easing:{},events:{}};eS.events.condition={},eS.extent={},eS.featureloader={},eS.format={},eS.format.filter={},eS.geom={},eS.has={},eS.interaction={},eS.layer={},eS.loadingstrategy={},eS.proj={},eS.proj.Units={},eS.proj.proj4={},eS.render={},eS.render.canvas={},eS.renderer={},eS.renderer.canvas={},eS.renderer.webgl={},eS.size={},eS.source={},eS.sphere={},eS.style={},eS.style.IconImageCache={},eS.tilegrid={},eS.transform={},eS.util={},eS.webgl={},eS.xml={},eS.Collection=Z,eS.Feature=q,eS.Geolocation=Hr,eS.Kinetic=qr,eS.Map=za,eS.Object=z,eS.Observable=D,eS.Observable.unByKey=function(t){if(Array.isArray(t))for(var e=0,r=t.length;e180)&&(r[0]=Vt(n+180,360)-180),r},eS.proj.transform=Me,eS.proj.transformExtent=Fe,eS.render.VectorContext=ha,eS.render.canvas.labelCache=da,eS.render.getRenderPixel=function(t,e){var r=e.slice(0);return Ze(t.inversePixelTransform.slice(),r),r},eS.render.getVectorContext=function(t){var e,r=t.frameState,n=Ve(t.inversePixelTransform.slice(),r.coordinateToPixelTransform),i=Fa(r.viewState.resolution,r.pixelRatio),o=je();return o&&(e=be(o,r.viewState.projection)),new Ca(t.context,r.pixelRatio,r.extent,n,r.viewState.rotation,i,e)},eS.render.toContext=function(t,e){var r=t.canvas,n=e||{},i=n.pixelRatio||an,o=n.size;o&&(r.width=o[0]*i,r.height=o[1]*i,r.style.width=o[0]+"px",r.style.height=o[1]+"px");var a=[0,0,r.width,r.height],s=Ke([1,0,0,1,0,0],i,i);return new Ca(t,i,a,s,0)},eS.renderer.Composite=Ya,eS.renderer.canvas.ImageLayer=Mh,eS.renderer.canvas.TileLayer=Yh,eS.renderer.canvas.VectorImageLayer=Cp,eS.renderer.canvas.VectorLayer=Rp,eS.renderer.canvas.VectorTileLayer=Mp,eS.renderer.webgl.PointsLayer=Yc,eS.size.toSize=Ri,eS.source.BingMaps=ml,eS.source.CartoDB=xl,eS.source.Cluster=Ml,eS.source.IIIF=Wl,eS.source.Image=eh,eS.source.ImageArcGISRest=ih,eS.source.ImageCanvas=uh,eS.source.ImageMapGuide=hh,eS.source.ImageStatic=ph,eS.source.ImageWMS=Eh,eS.source.OSM=xh,eS.source.OSM.ATTRIBUTION=Sh,eS.source.Raster=$h,eS.source.Source=ol,eS.source.Stamen=ic,eS.source.Tile=ll,eS.source.TileArcGISRest=sc,eS.source.TileDebug=hc,eS.source.TileImage=yl,eS.source.TileJSON=pc,eS.source.TileWMS=_c,eS.source.UTFGrid=vc,eS.source.Vector=bl,eS.source.VectorTile=Rc,eS.source.WMTS=Ic,eS.source.WMTS.optionsFromCapabilities=function(t,e){var r=R(t.Contents.Layer,function(t,r,n){return t.Identifier==e.layer});if(null===r)return null;var n,i=t.Contents.TileMatrixSet;(n=r.TileMatrixSetLink.length>1?C(r.TileMatrixSetLink,"projection"in e?function(t,r,n){var o=R(i,function(e){return e.Identifier==t.TileMatrixSet}).SupportedCRS,a=xe(o.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||xe(o),s=xe(e.projection);return a&&s?Ie(a,s):o==e.projection}:function(t,r,n){return t.TileMatrixSet==e.matrixSet}):0)<0&&(n=0);var o=r.TileMatrixSetLink[n].TileMatrixSet,a=r.TileMatrixSetLink[n].TileMatrixSetLimits,s=r.Format[0];"format"in e&&(s=e.format),(n=C(r.Style,function(t,r,n){return"style"in e?t.Title==e.style:t.isDefault}))<0&&(n=0);var u=r.Style[n].Identifier,l={};"Dimension"in r&&r.Dimension.forEach(function(t,e,r){var n=t.Identifier,i=t.Default;void 0===i&&(i=t.Value[0]),l[n]=i});var h,c=R(t.Contents.TileMatrixSet,function(t,e,r){return t.Identifier==o}),p=c.SupportedCRS;if(p&&(h=xe(p.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||xe(p)),"projection"in e){var f=xe(e.projection);f&&(h&&!Ie(f,h)||(h=f))}var d,_,g=r.WGS84BoundingBox;if(void 0!==g){var y=xe("EPSG:4326").getExtent();_=g[0]==y[0]&&g[2]==y[2],d=Fe(g,"EPSG:4326",h);var v=h.getExtent();v&&(it(v,d)||(d=void 0))}var m=uu(c,d,a),E=[],S=e.requestEncoding;if(S=void 0!==S?S:"","OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(var x=t.OperationsMetadata.GetTile.DCP.HTTP.Get,w=0,O=x.length;w